package com.yimi.yinhepda.entity.sign_manager;

import android.support.annotation.NonNull;

/**
 * 网点离岗打卡实体
 *
 * @author Administrator
 * @date 2018/6/1 0001
 */

public class LiGangBreakCardEntity implements Comparable<LiGangBreakCardEntity> {
    /**
     * 配载单号
     */
    private String stowageNo;
    /**
     * 打卡时间
     */
    private String breakTime;
    /**
     * 时间序列号
     */
    private String timeSeq = "";
    /**
     * 始发部门编码
     */
    private String srcDeptCode;
    /**
     * 始发部门名称
     */
    private String srcDeptName;
    /**
     * 到达部门编码
     */
    private String destDeptCode;
    /**
     * 到达部门名称
     */
    private String destDeptName;
    /**
     * 线路编码
     */
    private String lineCode;
    /**
     * 车牌号
     */
    private String carNo;
    private String scheduleNo;
    private String createrTime;
    private boolean isCheck;
    /**
     * 打开日期：YYYY-MM-DD
     */
    private String breakDate;
    /**
     * 出发时间
     */
    private String sendTime;

    public LiGangBreakCardEntity() {
    }

    public LiGangBreakCardEntity(String stowageNo, String breakTime, String timeSeq, String srcDeptCode, String srcDeptName, String destDeptCode,
                                 String destDeptName, String lineCode, String carNo, String scheduleNo, String createrTime, boolean isCheck) {
        this.stowageNo = stowageNo;
        this.breakTime = breakTime;
        this.timeSeq = timeSeq;
        this.srcDeptCode = srcDeptCode;
        this.srcDeptName = srcDeptName;
        this.destDeptCode = destDeptCode;
        this.destDeptName = destDeptName;
        this.lineCode = lineCode;
        this.carNo = carNo;
        this.scheduleNo = scheduleNo;
        this.createrTime = createrTime;
        this.isCheck = isCheck;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getBreakDate() {
        return breakDate;
    }

    public void setBreakDate(String breakDate) {
        this.breakDate = breakDate;
    }

    public String getTimeSeq() {
        return timeSeq;
    }

    public void setTimeSeq(String timeSeq) {
        this.timeSeq = timeSeq;
    }

    public String getBreakTime() {
        return breakTime;
    }

    public void setBreakTime(String breakTime) {
        this.breakTime = breakTime;
    }

    public String getStowageNo() {
        return stowageNo;
    }

    public void setStowageNo(String stowageNo) {
        this.stowageNo = stowageNo;
    }

    public String getSrcDeptCode() {
        return srcDeptCode;
    }

    public void setSrcDeptCode(String srcDeptCode) {
        this.srcDeptCode = srcDeptCode;
    }

    public String getSrcDeptName() {
        return srcDeptName;
    }

    public void setSrcDeptName(String srcDeptName) {
        this.srcDeptName = srcDeptName;
    }

    public String getDestDeptCode() {
        return destDeptCode;
    }

    public void setDestDeptCode(String destDeptCode) {
        this.destDeptCode = destDeptCode;
    }

    public String getDestDeptName() {
        return destDeptName;
    }

    public void setDestDeptName(String destDeptName) {
        this.destDeptName = destDeptName;
    }

    public String getLineCode() {
        return lineCode;
    }

    public void setLineCode(String lineCode) {
        this.lineCode = lineCode;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public String getScheduleNo() {
        return scheduleNo;
    }

    public void setScheduleNo(String scheduleNo) {
        this.scheduleNo = scheduleNo;
    }

    public String getCreaterTime() {
        return createrTime;
    }

    public void setCreaterTime(String createrTime) {
        this.createrTime = createrTime;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    @Override
    public int compareTo(@NonNull LiGangBreakCardEntity o) {
        return o.getTimeSeq().compareTo(this.getTimeSeq());
    }
}
